package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商城订单对象 jiajia_mall_order
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
public class JiajiaMallOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    @Excel(name = "地址簿Id")
    private Long addressId;

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 支付回调id */
    @Excel(name = "支付回调id")
    private String transactionId;

    /** 订单说明 */
    @Excel(name = "订单说明")
    private String orderDescription;

    /** 订单数据包 */
    @Excel(name = "订单数据包")
    private String orderData;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String orderNotes;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal totalPrice;

    @Excel(name = "利润积分")
    private BigDecimal profitPoints;

    @Excel(name = "排队积分")
    private BigDecimal queuePoints;

    @Excel(name = "自由积分")
    private BigDecimal freePoints;

    @Excel(name = "实付金额")
    private BigDecimal actualPrice;

    /** 0未支付，1超时取消，2已支付，3已发货，4确认收货，5申请取消中，6已取消，7已退款 */
    @Excel(name = "订单状态", readConverterExp = "0未支付，1超时取消，2已支付，3已发货，4确认收货，5申请取消中，6已取消，7已退款")
    private String orderStatus;


    private String refundReason;

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setTransactionId(String transactionId)
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId()
    {
        return transactionId;
    }
    public void setOrderDescription(String orderDescription) 
    {
        this.orderDescription = orderDescription;
    }

    public String getOrderDescription() 
    {
        return orderDescription;
    }
    public void setOrderData(String orderData) 
    {
        this.orderData = orderData;
    }

    public String getOrderData() 
    {
        return orderData;
    }
    public void setOrderNotes(String orderNotes) 
    {
        this.orderNotes = orderNotes;
    }

    public String getOrderNotes() 
    {
        return orderNotes;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }


    public BigDecimal getProfitPoints() {
        return profitPoints;
    }

    public void setProfitPoints(BigDecimal profitPoints) {
        this.profitPoints = profitPoints;
    }

    public BigDecimal getQueuePoints() {
        return queuePoints;
    }

    public void setQueuePoints(BigDecimal queuePoints) {
        this.queuePoints = queuePoints;
    }

    public BigDecimal getFreePoints() {
        return freePoints;
    }

    public void setFreePoints(BigDecimal freePoints) {
        this.freePoints = freePoints;
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNum", getOrderNum())
            .append("uid", getUid())
            .append("transactionId", getTransactionId())
            .append("orderDescription", getOrderDescription())
            .append("orderData", getOrderData())
            .append("orderNotes", getOrderNotes())
            .append("totalPrice", getTotalPrice())
            .append("orderStatus", getOrderStatus())
            .append("deleted", getDeleted())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
